package com.facebook.app.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class ActionFailedEvent extends GwtEvent<ActionFailedEventHandler> {
	
	public static final Type<ActionFailedEventHandler> TYPE = new Type<ActionFailedEventHandler>();
	
	private final String message;
	
	public ActionFailedEvent(String message) {
		this.message = message;
	}
	
	public String getMessage() {
		return message;
	}
	
	@Override
	public Type<ActionFailedEventHandler> getAssociatedType() {
		return TYPE;
	}
	
	@Override
	protected void dispatch(ActionFailedEventHandler handler) {
		handler.onActionFailed(this);
	}

}
